package tests.pages;

import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.pages.PageObject;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;


@DefaultUrl("http://82.200.2.19/people/8655884133087097414")

public class ProfilePage extends PageObject {

    @FindBy(css="#answer_167 > span.text")
    private WebElement questionTxt1;

    @FindBy(id="question_54")
    private WebElement explanation1;

    @FindBy(css="#answer_151 > span.text")
    private WebElement questionTxt2;

    @FindBy(id="question_46")
    private WebElement explanation2;

    @FindBy(className = "skip pseudo_link" )
    private WebElement skip;

    @FindBy (id="question_52")
    private WebElement explanation3;



   public ProfilePage(WebDriver driver) {
        super(driver);
  }
    public void question1(){
        element(questionTxt1).click();   }

    public void explanation1(){
        element(explanation1).click();   }

    public void skip(){
        element(skip).click();   }

    public void question2(){
        element(questionTxt2).click();   }

    public void explanation2(){
        element(explanation2).click();   }

    public void explanation3(){
        element(explanation3).isVisible();   }


}


